<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="style/sc.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<style>
.d1{
	width: 1350px;
	margin: auto;
	}
.d2{
	float: left;
	width: 300px;
	height: 200px;
	padding: 10px;
	border-radius: 10px;
	background-color:rgba(91,89,89,1.00);
	margin: 0 6px;
	margin-top: 5px;
	text-align: center;
}
.d2 img{
		border-radius: 10px;
	}
	</style>

<body>
<div class="box">
    <div class="top">
      <img src="style/shop/images/logo.jpg" class="logo">
      <div class="top-right">
        <ul class="nav">
        <li><a href="sy.php">首页</a></li>
          <li><a href="huiyzx.php">品牌故事</a></li>
          <li><a href="sy_sc/index.php">购物城</a></li>
          <li><a href="huiyzx.php">会员中心</a>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; </li>
        </ul>
      </div>
      <div class="login-box">
        <a href="../login.php">登录</a>
        <a href="register.php">注册</a>
      </div>
    </div>
 <table width="500" align="center">
  <tr>
  <td align="center">
  <a href="sy_sc/index.php?languages=新品推荐" style="background: none rgb(65, 105, 94); color: rgb(255, 255, 255); font-family: SourceHanSansCN-Bold; font-size: 12pt; border-bottom-left-radius: 50px; border-top-left-radius: 50px; outline: none;">新品推荐</a>
  <a href="sy_sc/index.php?languages=畅销产品" style="background: none rgb(65, 105, 94); color: rgb(255, 255, 255); font-family: SourceHanSansCN-Bold; font-size: 12pt; border-bottom-left-radius: 50px; border-top-left-radius: 50px; outline: none;">畅销产品</a>
  </td>
  </tr>
 </table>
   <?php
	include("conn/conn.php");
$page=$_GET['p'];
if($page==""){
$page=1;
}

$num=8;
$sql="select * from tb_video";
$sql_fy="select * from tb_video limit ".($page-1)*$num.",".$num;
$result=mysqli_query($link,$sql);
$rows=mysqli_num_rows($result);
$to_pages=ceil($rows/$num);
$result_fy=mysqli_query($link,$sql_fy);
if(mysqli_num_rows($result_fy)>0){
		?>
        <div class="d1">
<?php
    $num=0;
    while($row_v=mysqli_fetch_assoc($result_fy)){
		?>
     <div class="d2">
     
			<table width="100%" border="0" class="bk" align="center" >
				<tr>
		  			<td align="center">
          				<a href="xxxx.php?id1=<?=$row_v[id]?>"><img src="style/shop/images/<?=$row_v[picture]?>" width="200"/ class="img">
          				</a>
         			 </td>
                     <td>
                    	<?=$row_v[name]?>
                    </td>
        		</tr>
				<tr>
                	<td>
                    	<?=$row_v[type]?>
                    </td>
       				 <td>
                     	状态:<a style="color:#F90"><?=$row_v[actor]?></a>
                     </td>
                </tr>
	  		</table>
      </div>
<?php
	}

}else{
	echo ("没有你寻找的产品哦");
	}
?>
</div>
<table width="1200">
					<tr>
						<td align="center" valign="middle" height="80">
							第<?=$page?>页/共<?=$to_pages?>页
						</td>
                        <td align="center" valign="middle" height="80">
							<a href="sy_sc/index.php?p=1" class="link-b">首页<a>
						</td>
                        <td align="center" valign="middle" height="80">
                        <?php
							if($page>=$to_pages){
								echo "下一页";
							}else{
						?>
							<a href="sy_sc/index.php?p=<?=($page+1)?>" class="link-b">下一页<a>
							<?php
							}
							?>
						</td>
                        <td align="center" valign="middle" height="80">
                        <?php
							if($page=1){
								echo "上一页";
							}else{
							?>
							<a href="sy_sc/index.php?p=<?=($page-1)?>" class="link-b">上一页<a>
							<?php
							}
							?>
						</td>
                        <td align="center" valign="middle" height="80">
							<a href="sy_sc/index.php?p=<?=$to_pages?>" class="link-b">尾页</a>
						</td>
					</tr>
				</table>
                 <div class="footer">
      <img src="style/shop/images/footer.png" height="270px">
      <div class="gg">
        <img src="style/shop/images/icon.png" height="20px">
        <p>沪公网安备 31010602000985</p>
      </div>
      <ul class="f-list">
        <h3>联系我们</h3>
        <li>订单咨询热线:021-61255625</li>
        <li>工作时间：09:00-21:00</li>
        <li>品牌服务热线：400-920-9238</li>
        <li>服务时间：09:00-21:00(不含国定假日)</li>
        <li>客服邮件：innisfree@innisfree.cn</li>
      </ul>
    </div>

  </div> 
</body>
</html>